package com.briup.cms.exception;

import com.briup.cms.utils.MessageStatus;

/**
 * 自定义异常
 */
public class CustomerException extends RuntimeException {
    private static final long serialVersionUID = -1170457450324724193L;

    private MessageStatus messageStatus;

    public CustomerException(String message) {
        super(message);
    }
    public CustomerException(MessageStatus messageStatus) {
        super(messageStatus.message());
        this.messageStatus = messageStatus;
    }
    public MessageStatus getMessageStatus() {
        return messageStatus;
    }
}
